<div style="margin-left:10px">
<?php
if(isset($_SESSION['error']) || isset($error))
{
    if(isset($_SESSION['error']) && !isset($error))
	{
	    $error = $_SESSION['error'];
	}
    echo "<div style=\"font-size:12px; color:#FF0000\">".$error."</div>";
	unset($_SESSION['error']);
}elseif(isset($_SESSION['msg']))
{
    echo "<div style=\"font-size:12px; color:#0000FF\">".$_SESSION['msg']."</div>";
	unset($_SESSION['msg']);

}
?>
</div>
<div style="margin-left:10px;"><b><?=$name?></b></div>
<form action="index.php?m=networks&view=<?=$id?>" method="post" class="formFormat">
<input type="hidden" name="id" value="<?=$id?>" />
<input type="hidden" name="oldname" value="<?=$name?>" />
<table class="setting_table" cellspacing="10" style="width:400px">
<tr><td>Network Name</td><td><input type="text" name="network_name" value="<?=$name?>"</td></tr>
<tr><td>Status</td><td><select name="status"><?=selection($row->active)?></select></td></tr>
<tr><td colspan="2" style="text-align:left; padding-top:8px"><input type="submit" name="update" value="Update network" /> | <a href="javascript:void(0)" onclick="deleteIt('index.php?m=networks&amp;delete=<?=$id?>', 'Are you sure you want to delete this network?')">Delete</a></td></tr>
</table>
</form>
